#include "cSoldierData.h"

void cSoldierData::Update()
{
	if( _vBulletList.size() > 0 )
		for( std::vector<cBullet*>::iterator it = _vBulletList.begin(); it != _vBulletList.end(); it++ )
		{
			(*it)->Update();
			std::cout << "Update\n";
		}
}

void cSoldierData::SpawnBullet( IrrlichtDevice* device, vector2d<s32> startPos, vector2d<s32> moveVector )
{
	if( _vBulletList.size() > 0 )
		std::cout << _vBulletList[0]->GetPosition().X << ", " << _vBulletList[0]->GetPosition().Y << "\n";
	else
		_vBulletList.push_back( new cBullet( device, startPos, moveVector ) );
}